package org.dromara.admin.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 租金账单付款记录对象 hr_contract_pay_record
 *
 * @author Lion Li
 * @date 2025-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_contract_pay_record")
public class ContractPayRecord extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 金额（元）
     */
    private BigDecimal amount;

    /**
     * 付款方式: WXPAY(微信支付), ALIPAY(支付宝支付), TRANSFER_WX(线下转账-微信), TRANSFER_ALIPAY(线下转账-支付宝), TRANSFER_BANK(线下转账-网银), WITHHOLD_MAYI(代扣:蚂蚁链)
     */
    private String paymentMethod;

    /**
     * 状态: WAITING(等待), SUCCESS(成功), FAILED(失败)
     */
    private String status;

    /**
     * 审核状态: PENDING(待审核), APPROVED(通过), REJECTED(拒绝)
     */
    private String auditStatus;

    /**
     * 账单id
     */
    private Long billId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 付款凭证
     */
    private String images;

    /**
     * 打款时间
     */
    private Date paymentTime;

    /**
     * 审核时间
     */
    private Date auditTime;


}
